.page-container {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 搜索框样式 */
.search-container {
  padding: 15rpx 30rpx;
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.search-box {
  height: 70rpx;
  background-color: #f5f5f5;
  border-radius: 35rpx;
  display: flex;
  align-items: center;
  padding: 0 20rpx;
  position: relative;
}

.search-icon {
  width: 30rpx;
  height: 30rpx;
  margin-right: 15rpx;
}

.search-input {
  flex: 1;
  height: 100%;
  font-size: 28rpx;
  color: #333;
}

.placeholder-style {
  color: #999;
  font-size: 28rpx;
}

.clear-icon {
  width: 30rpx;
  height: 30rpx;
  margin-left: 15rpx;
}

.recommend-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0 10px;
}

/* 推荐项样式 */
.recommend-item {
  width: 48%;
  margin-bottom: 15px;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* 图片样式 */
.item-image {
  width: 100%;
  height: 200px;
}

/* 内容区域样式 */
.item-content {
  padding: 8px;
}

.item-title {
  font-size: 14px;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
  line-height: 1.4;
}

.item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 作者信息样式 */
.author-info {
  display: flex;
  align-items: center;
}

.author-avatar {
  width: 20px;
  height: 20px;
  border-radius: 10px;
  margin-right: 5px;
}

.item-author {
  font-size: 12px;
  color: #999;
}

/* 点赞区域样式 */
.like-container {
  display: flex;
  align-items: center;
}

.like-icon {
  width: 14px;
  height: 14px;
  margin-right: 3px;
}

.like-count {
  font-size: 12px;
  color: #999;
}

/* 底部导航栏样式 */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100rpx;
  background-color: #fff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid #f1f1f1;
  z-index: 100;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.tab-center {
  position: relative;
}

.tab-icon {
  width: 40rpx;
  height: 40rpx;
  margin-bottom: 5rpx;
}

.tab-icon-center {
  width: 80rpx;
  height: 60rpx;
  position: absolute;
  top: -30rpx;
}

.tab-text {
  font-size: 24rpx;
  color: #999;
}

.tab-text-active {
  font-size: 24rpx;
  color: #007AFF;
}